package com.flink.demo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserBehavior {
    private Long userId;
    private String itemId;
    private String category;
    private String behavior; // "click", "buy", "cart", "pv"
    private Timestamp timestamp;

    @Override
    public String toString() {
        return String.format("UserBehavior{userId=%d, itemId='%s', category='%s', behavior='%s', timestamp=%s}",
                userId, itemId, category, behavior, timestamp);
    }
}
